package com.chexiehui.jc.mvp.car;

import com.chexiehui.jc.Constants;
import com.chexiehui.jc.base.BaseModel;
import com.chexiehui.jc.base.BaseView;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * @Description 特价车询价
 * @Auth SongJun
 * @Date 2020/05/21 00:18
 **/
public interface SpecialCarInquiryCovenant {

    interface View extends BaseView {
        void onAddShopInquirySuccess(BaseModel<Object> successResult);

        void onAddShopInquiryFailure(BaseModel<Object> failureResult);

        String getCarId();

        String getShopId();

        String getPersonPhone();

        String getPersonName();
    }

    interface Stores {
        @FormUrlEncoded
        @POST(Constants.URL_CAR_ADD_SHOP_INQUIRY)
        Observable<BaseModel<Object>> addShopInquiry(
                @Field("type") String type,
                @Field("carid") String carid,
                @Field("shopids") String shopids,
                @Field("phone") String phone,
                @Field("name") String name,
                @Field("city") String city);
    }

    interface Presenter {
        void addShopInquiry();
    }

}